<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            AttendanceRecord编辑
        </h1>
        <ol class="breadcrumb">
            <li><a ui-sref="app.dashboard"><i class="fa fa-dashboard"></i>主页</a></li>
            <li><a ui-sref="app.hr.attendancerecord">AttendanceRecord</a></li>
            <li>编辑</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-md-12 col-lg-8">
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">基本信息</h3>
                    </div>
                    <div class="box-body">
                        <form class="form-horizontal" name="editForm">
                            <div class="form-group">
                                <label for="employeId" class="col-sm-2 control-label">职员编号</label>
                                <div class="col-sm-10">
                                    <select class="form-control inline" id="employeId"
                                            name="employeeId"
                                            ng-model="vm.data.employeId"
                                            ng-options="a.id as a.name for a in vm.employees"
                                            validator="required" placeholder="必须"></select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="checkInDate" class="col-sm-2 control-label">CheckInDate</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control inline" id="checkInDate"
                                           name="checkInDate"
                                           ng-model="vm.data.checkInDate"
                                           data-date-format="yyyy-MM-dd"
                                           data-autoclose="1" bs-datepicker />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="startTime" class="col-sm-2 control-label">StartTime</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control inline" id="startTime"
                                           name="startTime"
                                           ng-model="vm.data.startTime"
                                           data-date-format="yyyy-MM-dd"
                                           data-autoclose="1" bs-datepicker />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="endTime" class="col-sm-2 control-label">EndTime</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control inline" id="endTime"
                                           name="endTime"
                                           ng-model="vm.data.endTime"
                                           data-date-format="yyyy-MM-dd"
                                           data-autoclose="1" bs-datepicker />
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button type="submit" class="btn btn-primary"
                                            validation-submit="editForm"
                                            ng-click="vm.save()">
                                        提交
                                    </button>
                                    <button type="button" class="btn btn-default"
                                            ng-click="vm.back()">
                                        返回
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section><!-- /.content -->
</div><!-- /.content-wrapper -->